home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6191 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: noc.tor.hookup.net!not-for-mail
  2. From: gschmidt@noc.tor.hookup.net (Greg Schmidt)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Watcom 10.0 #pragma and C++ class declarations
  5. Date: 11 Feb 1996 00:15:48 -0500
  6. Organization: HookUp Communication Corporation, Oakville, Ontario, CANADA
  7. Message-ID: <4fju24$tqm@noc.tor.hookup.net>
  8. References: <4fjcgd$omj@kdcol.kdcol.com>
  9. NNTP-Posting-Host: noc.tor.hookup.net
  10. NNTP-Posting-User: gschmidt
  11.  
  12. In article <4fjcgd$omj@kdcol.kdcol.com>, Chad Barb <jestre@kdcol.com> wrote:
  13. >
  14. >I am trying to create a screen class in Watcom 10.0.
  15. >To do this, I need to use assembly, but I am unclear on the proper
  16. >syntax for in-class pragmas.
  17.  
  18. First of all, why not use the int86/int386 functions?  That's what they're
  19. there for (albeit a bit slower than direct assembly).
  20.  
  21. Second, it makes a big difference whether you have a 16- or 32-bit target.
  22. "Inline assembly" (quoted, because Watcom doesn't do it like normal) is
  23. fairly easy (I think) with 16-bit targets, but much more difficult when
  24. you're working in a 32-bit world.  These issues are discussed in some
  25. detail in the manuals (on-line and printed), but I can't remember exactly
  26. where right now.
  27.  
  28. I would think that the pragmas for inside a class are the same as normal,
  29. but I have no experience to back that up.
  30. ------------------------------------------------------------------------------
  31. Greg Schmidt, Software Engineer, Mytec Technologies Inc., Toronto, Canada
  32.     gschmidt@hookup.net   gregs@trawna.UUCP   http://www.hookup.net/~gschmidt/
  33.